package com.zc.springboot3hello.pubsub;

import redis.clients.jedis.Jedis;

/**
 * @description:
 * @author: cong
 * @create: 2024/12/9
 */
public class RedisPublisher {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("127.0.0.1", 6379);
        jedis.publish("channel1", "hello world");
        jedis.close();
    }
}
